package com.bwie.parkdemo.mvvm.ui.activity;

import com.bwie.lib_core.mvvm.base.BaseActivity;
import com.bwie.parkdemo.BR;
import com.bwie.parkdemo.R;
import com.bwie.parkdemo.databinding.ActivityLoginBinding;
import com.bwie.parkdemo.mvvm.viewmodel.LoginViewModel;

public class LoginActivity extends BaseActivity<ActivityLoginBinding, LoginViewModel> {

    @Override
    public int initLayout() {
        return R.layout.activity_login;
    }

    @Override
    public void initView() {
        v.setListener(vm.getListener());//设置按钮监听器
        v.setEntity(vm.getEntity());
    }

    @Override
    public int initVariable() {
        return BR.vm;
    }

}
